<?php echo $header; ?>
<link rel="stylesheet" type="text/css"
	href="view/stylesheet/icon_gallery.css" />
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?>
    	<?php if(isset($breadcrumb['href']) && $breadcrumb['href'] != '' && $breadcrumb['href'] != '#') {?>
	    	<a href="<?php echo $breadcrumb['href']; ?>">
	    		<?php echo $breadcrumb['text']; ?>
	    	</a>
    	<?php }else{?>
    		<?php echo $breadcrumb['text']; ?>
    	<?php }?>
    <?php } ?>
  </div>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/setting.png" alt="" /> <?php echo $heading_title; ?></h1>
    </div>
    <div class="content">
        <table class="list">
          <tbody>
            <?php if ($restaurants) { ?>
            <tr>
              <td class="left">
				<ul class="gallery">
	            <?php foreach ($restaurants as $restaurant) { ?>
					<li>
						<a href="<?php echo $restaurant['action']['href']; ?>" class="thumb"><span><img src="<?php echo $restaurant['image']; ?>" alt="" /></span></a>
						<h2><a href="<?php echo $restaurant['action']['href']; ?>"><?php echo $restaurant['name']; ?></a></h2>
					</li>
	            <?php } ?>
				</ul>
              </td>
            </tr>
            <?php } else { ?>
            <tr>
              <td class="center"><?php echo $text_no_results; ?></td>
            </tr>
            <?php } ?>
          </tbody>
        </table>
    </div>
  </div>
</div>
<script type="text/javascript"><!--
$(document).ready(function() {

	

});
//--></script> 
<?php echo $footer; ?> 